cmake_minimum_required(VERSION 3.4.1)
project(bridgeClient)
set(CMAKE_CXX_STANDARD 11)

find_package(catkin REQUIRED COMPONENTS roscpp)

include_directories(
    usr/include
    ./include
    ${catkin_INCLUDE_DIRS}
)

LINK_DIRECTORIES(
    /usr/local/lib
    /usr/lib
)

find_library(pthreadlib libpthread.so)
message(${pthreadlib})


find_library(jsonlib libjson.so)
message(${jsonlib})

message(${catkin_INCLUDE_DIRS})
message("             
 ________   ________  ____    __    ____ 
|       /  |       /  \   \  /  \  /   / 
`---/  /   `---/  /    \   \/    \/   /  
   /  /       /  /      \            /   
  /  /----.  /  /----.   \    /\    /    
 /________| /________|    \__/  \__/     
                                            
")


message(${catkin_LIBRARIES})

#add_library(test_lib STATIC src/ClientUtils.cpp) # 生成静态库
#add_library(test_so SHARED src/DroneState.cpp) # 生成动态库或共享库

add_executable(bridgeClient src/client.cpp src/ClientUtils.cpp src/DroneState.cpp) # 生成可执行文件
target_link_libraries(bridgeClient ${jsonlib} ${pthreadlib} ${catkin_LIBRARIES})








